package com.fnzn.entranceGuard.entity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import javax.persistence.Id;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author sxf
 * @since 2018-06-25
 */
@TableName("guard_qr_share")
public class GuardQrShare extends Model<GuardQrShare> {

    private static final long serialVersionUID = 1L;
    public static String TYPE_MSM="0";
    public static String TYPE_WX="1";
    @TableId(value="id", type= IdType.UUID)
    private String id;
    @TableField("community_id")
    private String communityId;
    @TableField("share_from")
    private String shareFrom;
    @TableField("user_name")
    private String userName;
    private String phone;
    @TableField("device_id")
    private String deviceId;
    private String target;
    /**
     * 是否有效0有效1无效
     */
    @TableField("is_valid")
    private String isValid;
    /**
     * 过期时间
     */
    @TableField("share_time")
    private String shareTime;
    @TableField("share_type")
    private String shareType;
    private String description;
    /**
     * 是否删除  -1：已删除  0：正常
     */
    @TableField("del_flag")
    private String delFlag;


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getShareFrom() {
        return shareFrom;
    }

    public void setShareFrom(String shareFrom) {
        this.shareFrom = shareFrom;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getDeviceId() {
        return deviceId;
    }

    public void setDeviceId(String deviceId) {
        this.deviceId = deviceId;
    }

    public String getIsValid() {
        return isValid;
    }

    public void setIsValid(String isValid) {
        this.isValid = isValid;
    }

    public String getShareTime() {
        return shareTime;
    }

    public void setShareTime(String shareTime) {
        this.shareTime = shareTime;
    }

    public String getShareType() {
        return shareType;
    }

    public void setShareType(String shareType) {
        this.shareType = shareType;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    public String getCommunityId() {
        return communityId;
    }

    public void setCommunityId(String communityId) {
        this.communityId = communityId;
    }

    public String getTarget() {
        return target;
    }

    public void setTarget(String target) {
        this.target = target;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "GuardQrShare{" +
        ", id=" + id +
        ", shareFrom=" + shareFrom +
        ", userName=" + userName +
        ", phone=" + phone +
        ", deviceId=" + deviceId +
        ", isValid=" + isValid +
        ", shareTime=" + shareTime +
        ", shareType=" + shareType +
        ", description=" + description +
        ", delFlag=" + delFlag +
        "}";
    }
}
